<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2016/11/11
 * Time: 11:26
 * Project name: PHPTEST
 * File name: Main.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */


spl_autoload_register(function ($name){
    if(is_string($name)){
        $a = explode("\\",$name);
//        require_once end(explode("\\",$name)).".php";
        require_once end($a).".php";
    }
},true);

//include_once "People.php";
//include_once "student.php";
use \com\zrx\pro\Student;

$student = new Student("zhangrxiang", 22);
$student->eating();
$student->working();
//$student = new \com\zrx\pro\Student("zhangrxiang", 22);
//$student->eating();